package cn.lcsjsxy.yxz.day.Abnormal;

//常见异常3
public class Common3 {

    public static void main(String[] args) {

        //格式化异常
        String a = "123";
        Integer b = Integer.parseInt(a);

        System.out.println(b);

        //类型转换错误
        Object obj = new User5();
        if (obj instanceof Emp5){
            Emp5 emp = (Emp5) obj;
        }
    }

}

class User5{

}
class Emp5{

}